package com.phantasy.modules
{
	import com.phantasy.modules.login.LoginModule;
	import com.phantasy.modules.scene.SceneModule;
	import com.phantasy.modules.scene.cases.MapCase;
	import com.phantasy.proto.m_broadcast_general_toc;
	import com.phantasy.proto.m_chat_auth_toc;
	import com.phantasy.proto.m_mission_list_toc;
	import com.phantasy.proto.m_role2_attr_change_toc;
	import com.phantasy.proto.p_bag_content;
	import com.phantasy.proto.p_channel_info;
	import com.phantasy.proto.p_goods;
	import com.phantasy.proto.p_map_monster;
	import com.phantasy.proto.p_map_tile;
	import com.phantasy.proto.p_mission_info;
	import com.phantasy.proto.p_prop;
	import com.phantasy.proto.p_role_attr_change;
	
	import flash.net.registerClassAlias;

	public class ModuleFactory
	{
		public function ModuleFactory()
		{
		}
		
		public static function createLoginModule():void
		{
			LoginModule.getInstance();
		}
		
		public static function createModules():void
		{
			//现在找不到此类的定义用此方法过度
			registerClassAlias("p.p_goods", p_goods);
			registerClassAlias("p.p_prop", p_prop);
			registerClassAlias("p.p_bag_content", p_bag_content);
			registerClassAlias("p.p_map_monster", p_map_monster);
			registerClassAlias("p.m_mission_list_toc", m_mission_list_toc);
			registerClassAlias("p.p_mission_info", p_mission_info);
			registerClassAlias("p.m_chat_auth_toc", m_chat_auth_toc);
			registerClassAlias("p.p_channel_info", p_channel_info);
			registerClassAlias("p.m_role2_attr_change_toc", m_role2_attr_change_toc);
			registerClassAlias("p.p_role_attr_change", p_role_attr_change);
			registerClassAlias("p.m_broadcast_general_toc", m_broadcast_general_toc);
			registerClassAlias("p.p_map_tile", p_map_tile);
			//实例化场景模块
			SceneModule.getInstance();
			MapCase.getInstance();
			
		}

	}
}